package com.javastudy.autowiredStudy.initBean;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory;
import org.springframework.stereotype.Service;

/**
 * 初始化bean的方式之一
 */
@Service
public class InitBeanByInitializingBean implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        //实现初始化的逻辑

    }
}
